package com.example.mybatis.mapper;

import com.example.mybatis.bean.Student;
import com.example.mybatis.bean.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {
    int insertSelective(Teacher teacher);

     List<Teacher> selectList();

    int updateSelectiveById(Teacher teacher);
    List<Teacher> seleList(@Param("name") String name,@Param("sex") String sex);
   /* @Select(" select * from teacher where name =#{name} and sex=#{sex} ")
    List<Teacher> seleList1(@Param("name") String name,@Param("sex") String sex);*/

/*    @Insert(" insert into teacher(name,sex) values(#{name},#{sex}")
    int insert1(Teacher teacher);*/



}
